<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>员工信息管理系统 - 首页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        header {
            background-color: #333;
            color: white;
            padding: 15px 0;
            margin-bottom: 30px;
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        nav a {
            color: white;
            text-decoration: none;
            margin-left: 20px;
        }
        nav a:hover {
            text-decoration: underline;
        }
        .welcome {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            text-align: center;
        }
        .welcome h2 {
            color: #333;
            margin-bottom: 20px;
        }
        .welcome p {
            color: #666;
            font-size: 18px;
            margin-bottom: 30px;
        }
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        .btn {
            padding: 12px 24px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            text-decoration: none;
        }
        .btn:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<header>
    <div class="header-content">
        <h1>员工信息管理系统</h1>
        <nav>
            <a href="/dashboard">首页</a>
            <a href="/employee">员工管理</a>
            <a href="/logout">退出登录</a>
        </nav>
    </div>
</header>

<div class="container">
    <div class="welcome">
        <h2>欢迎使用员工信息管理系统</h2>
        <p th:text="'当前登录用户：' + ${user.username}"></p>
        <div class="action-buttons">
            <a href="/employee" class="btn">员工列表</a>
            <a href="/employee/add" class="btn">添加员工</a>
        </div>
    </div>
</div>
</body>
</html>